package club.janna.springboot.study.bootstrap;

import club.janna.springboot.study.service.UserService;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class TxBootstrap {
    public static void main(String[] args) {
        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("spring/spring-tx.xml");
        UserService userService = context.getBean(UserService.class);
        userService.save();
    }
}
